<div class="containFt main history-orders transfer" v-if="show">
	
	<form>
		<div class="row mb05">
			<label class="col lh tr">产品编号：</label>
			<span class="col3 lh" v-text="formGoodscode"></span>
		</div>
		<div class="row mb05">
			<label class="col lh tr">对方手机：</label>
			<input type="number" class="ipt bord-rad col3" v-model="formMobile" />
		</div>
		<div class="row direct mb05">
			<label class="col lh tr">方向：</label>
			<div class="col3 row">
				<a class="col12 lh bord-rad tc" :class="{'active':formDirect==98}" @click="direct(98)">买入</a>
				<span class="col"></span>
				<a class="col12 lh bord-rad tc" :class="{'active':formDirect==115}"  @click="direct(115)">卖出</a>
			</div>
		</div>
		<div class="row mb05">
			<label class="col lh tr">价格：</label>
			<input type="text" class="ipt bord-rad col3" v-model="formPrice" />
		</div>
		<div class="row mb05">
			<label class="col lh tr">数量：</label>
			<input type="number" class="ipt bord-rad col3" v-model="formNum" />
		</div>
		<div class="row mb05">
			<label class="col lh tr">效验码：</label>
			<input type="number" class="ipt bord-rad col3" v-model="formVcode" />
		</div>
		<div class="mb1 tc">
			<input class="vtca-m" type="checkbox" id="confirm" v-model="formConfirm"/><label class="vtca-m" for="confirm">我已阅读并同意</label><a class="vtca-m">《定向交易协议》</a>
		</div>
		<input type="button" class="btn bord-rad" @click="submit" value="提交"/>
	</form>
	
	<div class="history-orders-ct">
		<div class="top-nav row">
			<div class="col" :class="{'selected':initiate}" v-on:click="switchTab(1)">我发起的</div>
			<div class="col" :class="{'selected':!initiate}" v-on:click="switchTab(0)">我收到的</div>
		</div>
	
		<div v-show="initiate">
			<table class="tb" id="today-list">
				<thead>
					<tr>
						<th class="title">商品</th>
						<th class="c tr">价格/数量</th>
						<th class="c tr">方向/状态</th>
						<th class="t tr">时间</th>
					</tr>
				</thead>
				<!--<tr @click="showAction(order)">
					<td class="tl">十八摸<br />8888</td>
					<td class="tr">188.00<br />8</td>
					<td class="tr">买入<br />待确认</td>
					<td class="tr">2017-04-05 12:13:55</td>
				</tr>
				<tr class="action" v-if="currentOrder == order">
					<td colspan="4">
						<div class="row">
							<div class="col2 tl">
								对方手机：18620418464<br />验证码：1234
							</div>
							<div class="col">
								<a class="btn-cancel bord-rad">撤销</a>
							</div>
						</div>
					</td>
				</tr>-->
				<tr v-for="order in ordersToday">
					<td class="tl">{{order.goodsname}}<br />{{order.goodscode}}</td>
					<td class="tr">{{order.tradeprice|priceFormat(order.mindecimal)}}<br />{{order.tradeamount}}</td>
					<td class="tr">{{order|typeName}}</td>
					<td class="tr">{{order.tradetime}}</td>
				</tr>
			</table>
			
			<!--<div class="center-middle couponNone" v-show="noMoreNow">
				<img src="/static/img/none_content.png"/>
				<p class="tc">没有更多记录</p>
			</div>-->
		</div>
	
		<div v-show="!initiate">
			<table class="tb" id="history-list">
				<thead>
					<tr>
						<th class="title">商品</th>
						<th class="c tr">价格/数量</th>
						<th class="c tr">方向/状态</th>
						<th class="t tr">时间</th>
					</tr>
				</thead>
				<tr v-for="order in ordersHistory" v-on:click="showDetail(order.opensn,order)">
					<td class="tl pad-l1">{{order.goodsname}}<br />{{order.goodscode}}</td>
					<td class="tr">{{order.tradeprice|priceFormat(order.mindecimal)}}<br />{{order.tradeamount}}</td>
					<td class="tr">{{order|typeName}}</td>
					<td class="tr">{{order.tradetime}}</td>
				</tr>
			</table>
		</div>
	</div>

	<div class="loadingCt" id="loading" v-show="loading"></div>

</div>
<!-- main -->